#pragma once
struct iAS {
    int idx;
    float score;
    bool operator<(const iAS &x) {
        if(score != x.score) return score > x.score;
        return idx < x.idx;
    }
};

#define MAX_DEPTH 24
#define INSERTION_SORT 32

#define CUT_LENGTH 20000

#define MAX_DOC_SIZE 128
#define MAX_QUERY_SIZE 4096
#define N_THREADS_IN_ONE_BLOCK 512
#define TOPK 5
